package com.example.demo.auth;

import com.example.demo.enums.Role;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Permission {

    boolean enable() default true;

    boolean all() default false;
    
    Role[] roles() default {};

}
